package com.ruifu.proj.permission;

/**
 * 委托人权限
 *
 * @author nyr
 * @create 2019/10/25
 */
public class PermissionFounder {
    /**
     * 未下达
     */
    public static final Integer NOT_ISSUED = PermissionOperation.OPEN +
            PermissionOperation.MODIFY_ATTRIBUTE +
            PermissionOperation.DELETE +
            PermissionOperation.APPOINT_EXECUTOR +
            PermissionOperation.REPLACE_EXECUTOR +  //2020.5.16 新增更换执行人权限
            PermissionOperation.RELEASE +
            PermissionOperation.MODIFY_PLAN +
            PermissionOperation.MODIFY_INPUT_DOCUMENT_OR_TYPE +
            PermissionOperation.MODIFY_OUTPUT_TYPE +
            PermissionOperation.MODIFY_PROJECT_STAGE +
            PermissionOperation.MODIFY_PROJECT_TEAM+
            PermissionOperation.MODIFY_START_STOP_TERM+
            PermissionOperation.RATIFY+
            PermissionOperation.CREATE;

    /**
     * 未启动
     */
    public static final Integer NOT_STARTED = PermissionOperation.OPEN +
            PermissionOperation.MODIFY_ATTRIBUTE +   //2020.5.16新增修改属性权限
            PermissionOperation.CANCEL_RELEASE +
            PermissionOperation.REPLACE_EXECUTOR +
            PermissionOperation.FROST +
            PermissionOperation.MODIFY_PLAN +
            PermissionOperation.MODIFY_INPUT_DOCUMENT_OR_TYPE +
            PermissionOperation.MODIFY_OUTPUT_TYPE +
            PermissionOperation.MODIFY_PROJECT_STAGE +
            PermissionOperation.MODIFY_PROJECT_TEAM+
            PermissionOperation.MODIFY_START_STOP_TERM+
            PermissionOperation.RATIFY+
            PermissionOperation.CREATE;

    /**
     * 执行中
     */
    public static final Integer IN_OPERATION = PermissionOperation.OPEN +
            PermissionOperation.REPLACE_EXECUTOR +
            PermissionOperation.FROST +
            PermissionOperation.MODIFY_INPUT_DOCUMENT_OR_TYPE +
            PermissionOperation.MODIFY_PROJECT_STAGE +
            PermissionOperation.MODIFY_PROJECT_TEAM+
            PermissionOperation.MODIFY_PLAN +
            PermissionOperation.MODIFY_OUTPUT_TYPE+
            PermissionOperation.RATIFY+
            PermissionOperation.CREATE;///2020.5.19 新增权限  ？？

    /**
     * 待审核
     */
    public static final Integer TO_BE_AUDITED = PermissionOperation.OPEN +
            PermissionOperation.AUDIT +
            PermissionOperation.FROST +
            PermissionOperation.MODIFY_PLAN +
            PermissionOperation.MODIFY_INPUT_DOCUMENT_OR_TYPE +
            PermissionOperation.MODIFY_OUTPUT_TYPE +
            PermissionOperation.MODIFY_PROJECT_STAGE +
            PermissionOperation.MODIFY_PROJECT_TEAM+
            PermissionOperation.RATIFY;

    /**
     * 已关闭
     */
    public static final Integer CLOSED = PermissionOperation.OPEN;

    /**
     * 冻结
     */
    public static final Integer FROZEN = PermissionOperation.UNFREEZE;


}
